Skip to content

feat: move getGrpcClient to ActionContext, #617#637

Merged
johanandren merged 1 commit intomainfrom
wip-617-grpc-action-patriknw
Oct 15, 2021
Merged

feat: move getGrpcClient to ActionContext, #617#637
johanandren merged 1 commit intomainfrom
wip-617-grpc-action-patriknw

Conversation

@patriknw
Copy link
Copy Markdown
Contributor

@patriknw patriknw commented Oct 15, 2021

  • because we don't want to encourage async (or even worse blocking)
    calls in other components
  • we don't have async effect in other components

Fixes #617

* because we don't want to encourage async (or even worse blocking)
  calls in other components
* we don't have async effect in other components
* service or an external service where connection details are configured under
* `akka.grpc.client.[service-name]` in `application.conf`.
*/
<T> T getGrpcClient(Class<T> clientClass, String service);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might not be needed in the ActionCreationContext, but doesn't hurt if someone prefer to grab it in the constructor

@patriknw patriknw requested a review from johanandren October 15, 2021 09:54
Copy link
Copy Markdown
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good closing down that path to bad entities

@johanandren johanandren merged commit d5ea583 into main Oct 15, 2021
@johanandren johanandren deleted the wip-617-grpc-action-patriknw branch October 15, 2021 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move getGrpcClient to ActionContext

2 participants